//package com.zmn.plat.dubbo.controller;
//
//import com.zmn.common.dto2.ResponseDTO;
//import com.zmn.plat.business.interfaces.price.AdvanceFlowBService;
//import com.zmn.plat.business.interfaces.price.MeterFlowBService;
//import com.zmn.plat.business.interfaces.product.ProductCache;
//import com.zmn.plat.common.dto.brand.BaseBrandDRO;
//import com.zmn.plat.common.dto.price.ItemTo;
//import com.zmn.plat.common.dto.price.meter.*;
//import com.zmn.plat.common.dto.product.tariff.TariffBackProductDRO;
//import com.zmn.plat.common.dto.product.tariff.TariffProductDRO;
//import com.zmn.plat.common.dto.product.tariff.category.TariffCategoryDRO;
//import com.zmn.plat.common.dto.product.tariff.category.TariffCategoryPageDRO;
//import com.zmn.plat.common.dto.product.tariff.servcategory.TariffServCategoryDRO;
//import com.zmn.plat.common.dto.servcategory.ServCategoryChildrenDRO;
//import com.zmn.plat.dubbo.interfaces.price.MeterFlowRemoteService;
//import com.zmn.plat.dubbo.utils.DubboConsts;
//import com.zmn.plat.model.entity.product.ServProduct;
//import com.zmn.plat.model.entity.product.ServProductQuery;
//import com.zmn.plat.services.interfaces.product.ServProductService;
//import lombok.extern.slf4j.Slf4j;
//import org.apache.dubbo.config.annotation.Reference;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.annotation.Resource;
//import java.util.List;
//
///**
// * @author tanbiao
// * @description
// * @modifier
// * @since 2020/11/13 14:04
// **/
//@Slf4j
//@RestController
//@RequestMapping("/test/newtariff/")
//public class MeterFlowController {
//
//    @Resource
//    private MeterFlowBService bService;
//
//    @Resource
//    private AdvanceFlowBService advanceFlowBService;
//
//    @Resource
//    private ServProductService productService;
//
//    @Reference(version = DubboConsts.INTERFACE_VERSION, check = false)
//    private MeterFlowRemoteService meterFlowRemoteService;
//
//    @RequestMapping(value = "test1", method = RequestMethod.POST)
//    public ResponseDTO test1() {
//        long start = System.currentTimeMillis();
//        List<ServCategoryChildrenDRO> dro = bService.listServAndCategByChannelIdAndCity(40001, 500100);
//        long end = System.currentTimeMillis();
//        return ResponseDTO.success(dro, "耗时：" + (end - start));
//    }
//
//    @RequestMapping(value = "test2", method = RequestMethod.POST)
//    public ResponseDTO test2() {
//        long start = System.currentTimeMillis();
//        TariffCategoryPageDRO dro = bService.listTwoCategByChannelIdAndCity(40001, 500100);
//        long end = System.currentTimeMillis();
//        return ResponseDTO.success(dro, "耗时：" + (end - start));
//    }
//
//    @RequestMapping(value = "test3", method = RequestMethod.POST)
//    public ResponseDTO test3(@RequestBody MeterFtCategQuery query) {
//        long start = System.currentTimeMillis();
//        List<TariffCategoryDRO> dro = bService.listFtCategByQuery(query);
//        ResponseDTO<List<TariffCategoryDRO>> listResponseDTO = meterFlowRemoteService.listFtCategByQuery(query);
//        long end = System.currentTimeMillis();
//        return ResponseDTO.success(dro, "耗时：" + (end - start));
//    }
//
//    @RequestMapping(value = "test4", method = RequestMethod.POST)
//    public ResponseDTO test4(@RequestBody MeterServQuery query) {
//        long start = System.currentTimeMillis();
//        List<TariffServCategoryDRO> dro = bService.listServByQuery(query);
//        long end = System.currentTimeMillis();
//        return ResponseDTO.success(dro, "耗时：" + (end - start));
//    }
//
//    @RequestMapping(value = "test5", method = RequestMethod.POST)
//    public ResponseDTO test5(@RequestBody MeterFtProductQuery query) {
//        long start = System.currentTimeMillis();
//        List<TariffProductDRO> dro = bService.listTariffProductByQuery(query);
//        long end = System.currentTimeMillis();
//        return ResponseDTO.success(dro, "耗时：" + (end - start));
//    }
//
//    @RequestMapping(value = "test6", method = RequestMethod.POST)
//    public ResponseDTO test6(@RequestBody MeterBrandQuery query) {
//        long start = System.currentTimeMillis();
//        List<BaseBrandDRO> dro = bService.listBrandByQuery(query);
//        long end = System.currentTimeMillis();
//        return ResponseDTO.success(dro, "耗时：" + (end - start));
//    }
//
//    @RequestMapping(value = "test7", method = RequestMethod.POST)
//    public ResponseDTO test7(@RequestBody MeterItemQuery query) {
//        long start = System.currentTimeMillis();
//        List<ItemTo> dro = bService.listItemByQuery(query);
//        long end = System.currentTimeMillis();
//        return ResponseDTO.success(dro, "耗时：" + (end - start));
//    }
//
//    @RequestMapping(value = "test8", method = RequestMethod.POST)
//    public ResponseDTO test8(@RequestBody MeterBkCategQuery query) {
//        long start = System.currentTimeMillis();
//        List<TariffCategoryDRO> dro = bService.listBkCategByQuery(query);
//        long end = System.currentTimeMillis();
//        return ResponseDTO.success(dro, "耗时：" + (end - start));
//    }
//
//    @RequestMapping(value = "test9", method = RequestMethod.POST)
//    public ResponseDTO test9(@RequestBody MeterBkProductQuery query) {
//        long start = System.currentTimeMillis();
//        List<TariffBackProductDRO> dro = bService.listBkProductByQuery(query);
//        long end = System.currentTimeMillis();
//        return ResponseDTO.success(dro, "耗时：" + (end - start));
//    }
//
//    @RequestMapping(value = "test10", method = RequestMethod.POST)
//    public ResponseDTO test10(@RequestBody MeterQuoteQuery query) {
//        long start = System.currentTimeMillis();
//        List<ItemTo> dro = bService.listQuoteByQuery(query);
//        long end = System.currentTimeMillis();
//        return ResponseDTO.success(dro, "耗时：" + (end - start));
//    }
//
//    @RequestMapping(value = "test11", method = RequestMethod.POST)
//    public ResponseDTO test11(@RequestBody MeterQuoteUnknowQuery query) {
//        long start = System.currentTimeMillis();
//        List<MeterQuoteUnknowDRO> dro = bService.listQuoteUnknowByQuery(query);
//        long end = System.currentTimeMillis();
//        return ResponseDTO.success(dro, "耗时：" + (end - start));
//    }
//
//    @RequestMapping(value = "test12", method = RequestMethod.POST)
//    public ResponseDTO test12(@RequestBody MeterItemPriceQuery query) {
//        long start = System.currentTimeMillis();
//        List<ItemTo> dro = bService.listItemPriceByItemCategId(query);
//        long end = System.currentTimeMillis();
//        return ResponseDTO.success(dro, "耗时：" + (end - start));
//    }
//
//    @RequestMapping(value = "test13", method = RequestMethod.POST)
//    public ResponseDTO test13(@RequestBody MeterItemPriceQuery query) {
//        long start = System.currentTimeMillis();
//        List<ItemTo> dro = bService.listItemPriceByPriceStandard(query);
//        long end = System.currentTimeMillis();
//        return ResponseDTO.success(dro, "耗时：" + (end - start));
//    }
//
//}
